package com.zl.roomdesign.auth

import com.zl.core.api.data.BaseResult
import com.zl.core.db.user.User
import io.reactivex.Observable
import retrofit2.http.Body
import retrofit2.http.POST

/**
 * Created by zhangli on 2018/5/5,19:50<br/>
 */
interface AuthService {

    @POST("auth/login")
    fun login(@Body user: User): Observable<BaseResult<User>>

    @POST("auth/register")
    fun register(@Body user: User): Observable<BaseResult<Any>>
}